#ifndef FORMDECMASTERS_H
#define FORMDECMASTERS_H

#include <QWidget>
#include "dbmscontainer.h"
#include <QModelIndex>

namespace Ui {
    class FormDecMasters;
}

class FormDecMasters : public QWidget, public DbmsContainer
{
    Q_OBJECT
    QVariantList mqvl_indexes;

public:
    explicit FormDecMasters(QWidget *parent = 0);
    ~FormDecMasters();

    void update_models();
    void enable_selection();
    void hide_sel_btn();

private slots:
        void add_master();
        void del_master();
        void update_master(const QModelIndex index);
        void select_record();
signals:
    void record_selected(QVariant );
private:
    Ui::FormDecMasters *ui;
};

#endif // FORMDECMASTERS_H
